package com.peiqi.aiproject.controller;


import cn.hutool.http.HttpStatus;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.peiqi.aiproject.domain.Follow;
import com.peiqi.aiproject.domain.vo.ResponseVO;
import com.peiqi.aiproject.service.FollowService;
import com.peiqi.aiproject.utils.PageUtils;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import static com.peiqi.aiproject.domain.vo.ResponseVO.success;

/**
 * 热门达人
 *
 * @author yulian
 */
@RestController
@RequestMapping("/follow")
public class FollowController {
    @Resource
    FollowService followService;

    /**
     * 获取热门达人列表。
     */
    @GetMapping
    public ResponseVO<List<Follow>> follow() {
        return success(HttpStatus.HTTP_OK, followService.getFollow());
    }

}
